package main

import "fmt"

func main() {
	// var planets [8]string
	// // planets[0] = "Mercury"
	// // planets[1] = "Venus"
	// // planets[2] = "Earth"

	// // earth := planets[2]
	// // fmt.Println(earth)
	// // fmt.Println(len(planets))
	// // fmt.Println(planets[3] == "")

	// i := 8
	// planets[i] = "Pluto"
	// pluto := planets[i]
	// fmt.Println(pluto)
	planets := [...]string{
		"a",
		"b",
		"c",
		"d",
		"e",
		"f",
		"g",
		"h",
	}
	fmt.Println(planets)
	fmt.Println(len(planets))
	fmt.Println(cap(planets))

	dwarfs := [5]string{"Ceres", "Pluto", "Haumea", "Makemake", "Eris"}
	for i := 0; i < len(dwarfs); i++ {
		dwarf := dwarfs[i]
		fmt.Println(dwarf)
	}

	fmt.Println("=====================================")

	for index, value := range dwarfs {
		fmt.Println(index, value)
	}
}
